/*
 * =====================================================================================
 *
 *       Filename:  OpenningState.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/04/2022 03:42:59 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */
#include "OpenningState.h"
#include "Context.h"
#include <iostream>
#include "Log.h"
using std::cout;
using std::endl;
using std::string;

static const string TAG = "OpenningState";

OpenningState::OpenningState(void) {
}

OpenningState::~OpenningState(void) {
}

void OpenningState::Open() {
    LogI("电梯门开启...");
}

void OpenningState::Close() {
    LogI("In");
    this->LiftState::m_pContext->SetLiftState(Context::pCloseingState);
    this->LiftState::m_pContext->GetLiftState()->Close();
}

void OpenningState::Run() {
    LogI("In");
}

void OpenningState::Stop() {
    LogI("In");
}
